
class Codon:
    def __init__(self, operator, loperand, roperand):
        self.operator = operator
        self.loperand = loperand
        self.roperand = roperand
        
    def __eq__(self, other):
        return isinstance(other, Codon) \
            and other.operator == self.operator \
            and other.loperand == self.loperand \
            and other.roperand == self.roperand
